# -*- coding: utf-8 -*-
# @Time    : 2022/7/15 15:39
# @Author  : haichuan
# @Email   : 2263126410@163.com
# @File    : tes_zzjg_addbumen_007.py
# @Software: PyCharm

from selenium import webdriver
from selenium.webdriver.common.by import By
from time import  sleep
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.select import Select
from pages.xtbs_tj_bumpage import AddBumPage
import unittest

class AddBuM(unittest.TestCase):
    driver = webdriver.Chrome()
    def setUp(self):
        self.driver.maximize_window()
        user_name = "qq"
        user_password = "123456"
        acces_b=AddBumPage( self.driver )
        acces_b.open()
        acces_b.d_nam( user_name )
        acces_b.d_pw( user_password )
    def test_addbum(self):
        bumname="陆地生鲜负责采购部"
        explaintest=("这是一个外出的部门")
        acces_b=AddBumPage(self.driver)
        acces_b.access_bum()
        acces_b.bum_name(bumname)
        acces_b.bum_buz()
        acces_b.bum_explain(explaintest)
        acces_b.add_btn()

    def tearDown(self):
        sleep(2)
        self.driver.quit()

if __name__=="__main":
    unittest.main()





